package com.milk.system.converter;

import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.milk.system.model.dto.CommentsDTO;
import com.milk.system.model.entity.Comments;
import com.milk.system.model.vo.CommentsPageVO;
import com.milk.system.model.form.CommentsForm;
import com.milk.system.model.bo.CommentsBO;

/**
 * 评论管理表转换器
 *
 * @author milk
 * @since 2024-05-04
 */
@Mapper(componentModel = "spring")
public interface CommentsConverter{

    CommentsPageVO bo2PageVo(CommentsBO bo);

    Page<CommentsPageVO> bo2PageVo(Page<CommentsBO> bo);

    CommentsForm entity2Form(Comments entity);

    @InheritInverseConfiguration(name = "entity2Form")
    Comments form2Entity(CommentsForm entity);
}